﻿using M_Purchase.Domain;
using Microsoft.EntityFrameworkCore;

namespace M_Purchase.Repository
{
    public class EFContext:DbContext
    {
        public EFContext(DbContextOptions options) : base(options) { }

        //采购表映射
        public DbSet<Purch> Purch {  get; set; }
        //供应商
        public DbSet<Supplier> Supplier { get; set; }

        /// <summary>
        /// 调拨
        /// </summary>
        public DbSet<Allocate> Allocates { get; set; }

        /// <summary>
        /// 仓库-原料-调拨关联表
        /// </summary>
        public DbSet<WIAllocate> WIAllocates { get; set; }

        //物流公司
        public DbSet<Logistics> Logistics { get; set; }
    }
}
